import request from '@/config/request.js';

// 获取社区列表
export const communityParentList = (params) => request.get('/business/infoCommunity/getParentList', params)
// 获取社区列表
export const communityList = (id) => request.get('/business/infoCommunity/getList/' + id)

// 新增社区信息
export const communityAdd = (params) => request.post('/business/infoCommunity', params)

// 获取社区树结构
export const getCommunityTree = (id) => request.get('/business/infoCommunity/communityTree/' + id)